package com.bawei.opengldemo;

import android.content.Context;
import android.util.AttributeSet;

public class WlMutiSurfaceVeiw extends WLEGLSurfaceView{

    private WlMutiRender wlMutiRender;

    public WlMutiSurfaceVeiw(Context context) {
        this(context, null);
    }

    public WlMutiSurfaceVeiw(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public WlMutiSurfaceVeiw(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        wlMutiRender = new WlMutiRender(context);
        setRender(wlMutiRender);
    }

    public void setTextureId(int textureId, int index)
    {
        if(wlMutiRender != null)
        {
            wlMutiRender.setTextureId(textureId, index);
        }
    }
}
